home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / graphics / tiff / tools / Makefile.apollo < prev    next >
Makefile  |  1992-02-21  |  4KB  |  149 lines

  1. #    $Header: /usr/people/sam/tiff/tools/RCS/Makefile.apollo,v 1.21 92/02/21 16:00:14 sam Exp $
  2. #
  3. # TIFF Library Tools
  4. #
  5. # Copyright (c) 1988, 1989, 1990, 1991, 1992 Sam Leffler
  6. # Copyright (c) 1991, 1992 Silicon Graphics, Inc.
  7. # Permission to use, copy, modify, distribute, and sell this software and 
  8. # its documentation for any purpose is hereby granted without fee, provided
  9. # that (i) the above copyright notices and this permission notice appear in
  10. # all copies of the software and related documentation, and (ii) the names of
  11. # Sam Leffler and Silicon Graphics may not be used in any advertising or
  12. # publicity relating to the software without the specific, prior written
  13. # permission of Stanford and Silicon Graphics.
  14. # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  15. # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  16. # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  17. # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  18. # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  19. # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  20. # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  21. # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  22. # OF THIS SOFTWARE.
  23. #
  24. # the tools utilities will be installed in DESTDIR/bin
  25. DESTDIR=/progs/bit2bit/tiff
  26. INSTALL= /usr/bin/install
  27.  
  28. NULL=
  29. IPATH=    -I../libtiff
  30. #
  31. # If you don't want the public domain getopt code, then
  32. # simply null this out and you'll get whatever is in your
  33. # libc (or similar).
  34. #
  35. #GETOPT=    getopt.o
  36. #
  37. # Library-wide configuration defines:
  38. #    MMAP_SUPPORT    add support for memory mapping read-only files
  39. #    COLORIMETRY_SUPPORT add support for 6.0 colorimetry tags
  40. #    JPEG_SUPPORT    add support for 6.0 JPEG tags & JPEG algorithms
  41. #    YCBCR_SUPPORT    add support for 6.0 YCbCr tags
  42. #    CMYK_SUPPORT    add support for 6.0 CMYK tags
  43. #
  44. # Note that if you change the library-wide configuration, you'll
  45. # need to manual force a full rebuild. 
  46. #
  47. CONF_LIBRARY=\
  48.     -DUSE_VARARGS=1 \
  49.     -DUSE_PROTOTYPES=0 \
  50.     -DCOLORIMETRY_SUPPORT \
  51.     -DYCBCR_SUPPORT \
  52.     ${NULL}
  53. COPTS=    
  54. CFLAGS=    -O -A nansi ${COPTS} ${IPATH}
  55. #
  56. LIBTIFF=../libtiff/libtiff.a
  57. LIBS=    ${LIBTIFF}
  58. MACHALL=ras2tiff
  59. OBJS=    \
  60.     fax2tiff.o \
  61.     gif2tiff.o \
  62.     pal2rgb.o \
  63.     ppm2tiff.o \
  64.     rgb2ycbcr.o \
  65.     tiff2bw.o \
  66.     tiff2ps.o \
  67.     tiffcmp.o \
  68.     tiffcp.o \
  69.     tiffdither.o \
  70.     tiffdump.o \
  71.     tiffinfo.o \
  72.     tiffmedian.o \
  73.     tiffsplit.o \
  74.     ras2tiff.o \
  75.     ${GETOPT} \
  76.     ${NULL}
  77. ALL=    \
  78.     fax2tiff \
  79.     gif2tiff \
  80.     pal2rgb \
  81.     ppm2tiff \
  82.     rgb2ycbcr \
  83.     tiff2bw \
  84.     tiff2ps \
  85.     tiff2ps \
  86.     tiffcmp \
  87.     tiffcp \
  88.     tiffdither \
  89.     tiffdump \
  90.     tiffinfo \
  91.     tiffmedian \
  92.     tiffsplit \
  93.     ${MACHALL} \
  94.     ${NULL}
  95.  
  96. all:     ${ALL}
  97.  
  98. tiffinfo: tiffinfo.c ${GETOPT} ${LIBTIFF}
  99.     ${CC} -o tiffinfo ${CFLAGS} tiffinfo.c ${GETOPT} ${LIBS}
  100. tiffcmp:tiffcmp.c ${GETOPT} ${LIBTIFF}
  101.     ${CC} -o tiffcmp ${CFLAGS} tiffcmp.c ${GETOPT} ${LIBS}
  102. tiffcp:    tiffcp.c ${LIBTIFF}
  103.     ${CC} -o tiffcp ${CFLAGS} tiffcp.c ${LIBS}
  104. tiffdump: tiffdump.c
  105.     ${CC} -o tiffdump ${CFLAGS} tiffdump.c
  106. tiffmedian: tiffmedian.c ${LIBTIFF}
  107.     ${CC} -o tiffmedian ${CFLAGS} tiffmedian.c ${LIBS}
  108. tiffsplit: tiffsplit.c ${LIBTIFF}
  109.     ${CC} -o tiffsplit ${CFLAGS} tiffsplit.c ${LIBS}
  110. tiff2ps: tiff2ps.c ${LIBTIFF}
  111.     ${CC} -o tiff2ps ${CFLAGS} tiff2ps.c ${LIBS} -lm
  112. # junky stuff...
  113. # convert RGB image to B&W
  114. tiff2bw: tiff2bw.c ${GETOPT} ${LIBTIFF}
  115.     ${CC} -o tiff2bw ${CFLAGS} tiff2bw.c ${GETOPT} ${LIBS}
  116. # convert B&W image to bilevel w/ FS dithering
  117. tiffdither: tiffdither.c ${LIBTIFF}
  118.     ${CC} -o tiffdither ${CFLAGS} tiffdither.c ${LIBS}
  119. # Group 3 FAX file converter
  120. fax2tiff: fax2tiff.c ${GETOPT} ${LIBTIFF}
  121.     ${CC} -o fax2tiff ${CFLAGS} ${CONF_LIBRARY} fax2tiff.c ${GETOPT} ${LIBS}
  122. # convert Palette image to RGB
  123. pal2rgb: pal2rgb.c ${LIBTIFF}
  124.     ${CC} -o pal2rgb ${CFLAGS} pal2rgb.c ${LIBS}
  125. # convert RGB image to YCbCr
  126. rgb2ycbcr: rgb2ycbcr.c ${GETOPT} ${LIBTIFF}
  127.     ${CC} -o rgb2ycbcr ${CFLAGS} rgb2ycbcr.c ${GETOPT} ${LIBS} -lm
  128. # PBM converter
  129. ppm2tiff: ppm2tiff.c ${LIBTIFF}
  130.     ${CC} -o ppm2tiff ${CFLAGS} ppm2tiff.c ${LIBS}
  131. # GIF converter
  132. gif2tiff: gif2tiff.c ${LIBTIFF}
  133.     ${CC} -o gif2tiff ${CFLAGS} gif2tiff.c ${LIBS} -lm
  134. # Sun rasterfile converter
  135. ras2tiff: ras2tiff.c ${LIBTIFF}
  136.     ${CC} -o ras2tiff ${CFLAGS} ras2tiff.c ${LIBS}
  137.  
  138. install: all
  139.     @-mkdir $(DESTDIR)/bin
  140.     -for i in ${ALL}; do \
  141.         ${INSTALL} -c -m 755 $$i ${DESTDIR}/bin/$$i; \
  142.     done
  143.  
  144. clean:
  145.     rm -f ${ALL} ${OBJS} core a.out ycbcr
  146.